package com.acme.task4;

public class Task4Arrays {
	public static void main(String[] args) {

		int array[] = new int[10];
		array[0] = 3;
		array[1] = 7;
		array[2] = 3;

		int numberOfThree = 0;
		int numberOfSeven = 0;
		int numberOfNine = 0;
		
		for(int i : array){
			switch (i) {
			case 3:
				numberOfThree++;
				break;
			case 7:
				numberOfSeven++;
				break;
			case 9 :
				numberOfNine++;
				break;
			default:
				break;
			}
		}
		
		System.out.println("Number of 3: " + numberOfThree);
		System.out.println("Number of 7: " + numberOfSeven);
		System.out.println("Number of 9: " + numberOfNine);
	}
}
